package com.xingkeduo.pojo.table;

import com.xingkeduo.util.pojo.base.BaseTable;
import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 18-12-30 下午9:33
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
@Alias("ShopsDays")
public class ShopsDaysTable extends BaseTable<ShopsDaysTable> {

    @NotNull(message = "门店不能为空")
    private Long shopsId;

    @NotNull(message = "星期不能为空")
    @Range(min = 1,max = 7,message = "星期选择有误")
    private String dayids;

    @NotNull(message = "开始时间不能为空")
    private String starttime;

    @NotNull(message = "结束时间不能为空")
    private String endtime;

    private Integer daytype;

    private Integer status = 0;

    public Long getShopsId() {
        return shopsId;
    }

    public ShopsDaysTable setShopsId(Long shopsId) {
        this.shopsId = shopsId;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public ShopsDaysTable setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getStarttime() {
        return starttime;
    }

    public ShopsDaysTable setStarttime(String starttime) {
        this.starttime = starttime;
        return this;
    }

    public String getEndtime() {
        return endtime;
    }

    public ShopsDaysTable setEndtime(String endtime) {
        this.endtime = endtime;
        return this;
    }

    public String getDayids() {
        return dayids;
    }

    public ShopsDaysTable setDayids(String dayids) {
        this.dayids = dayids;
        return this;
    }

    public Integer getDaytype() {
        return daytype;
    }

    public ShopsDaysTable setDaytype(Integer daytype) {
        this.daytype = daytype;
        return this;
    }
}
